//
//  PSSelectJobCategoryCell.m
//  Btpin
//
//  Created by Vic on 2019/5/30.
//  Copyright © 2019 Vic. All rights reserved.
//

#import "PSSelectJobCategoryCell.h"

@interface PSSelectJobCategoryCell()

@property (nonatomic, strong) UILabel *titleLabel;

@end

@implementation PSSelectJobCategoryCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self initUI];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}
#pragma mark - InitSubViews
- (void)initUI {
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, WIDTH/3, 45)];
    self.titleLabel.font = Font(Font_13);
    self.titleLabel.textColor = THEMECOLOR_OF_TEXT_333333;
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.titleLabel];
}
#pragma mark -- Action
- (void)setData:(PublicCategoryElementModel *)model isSelect:(BOOL)isSelect {
    self.titleLabel.text = model.name;
    
    if (isSelect) {
        self.titleLabel.textColor = THEMECOLOR_OF_ORANGE;
    } else {
        self.titleLabel.textColor = THEMECOLOR_OF_TEXT_333333;
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
